public class Main {
    public static void main(String[] args) {
        // 创建父母马匹
        Thoroughbred mother = new Thoroughbred(null, null, 2010);
        Thoroughbred father = new Thoroughbred(null, null, 2012);

        // 创建一匹马，指定父母和出生年份
        Thoroughbred horse = new Thoroughbred(mother, father, 2018);

        // 输出年龄和父母信息
        System.out.println("马的当前年龄: " + horse.getCurrentAge());
        System.out.println("母亲的出生年份: " + horse.getMother().getBirthYear());
        System.out.println("父亲的出生年份: " + horse.getFather().getBirthYear());
    }
}
